package com.heima.media.listener;

import com.heima.media.task.ArticleDelayTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @description:
 * @author: ArticleDelayListener
 * @time: 2022/7/2
 */
@Component
public class ArticleDelayListener {
    @Autowired
    private ArticleDelayTask articleDelayTask;

    @PostConstruct
    public void handleMessage() throws Exception{
        articleDelayTask.handleMessage();
    }
}
